package com.example.test2;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.context.event.ApplicationReadyEvent;
import org.springframework.context.ApplicationListener;


public class MyApplicationEvent implements ApplicationListener<ApplicationReadyEvent> {
    private final Logger logger = LoggerFactory.getLogger(MyApplicationEvent.class);
    @Override
    public void onApplicationEvent(ApplicationReadyEvent readyEvent){
        logger.info("The Application is ready");
    }
}
